package com.gyx.rocsun.controller;

import com.gyx.rocsun.service.CacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/cache")
public class CacheTestController {

    @Autowired
    private CacheService cacheService;

    @RequestMapping("/test")
    public String test() {
        return cacheService.query("hello Caffeine!");
    }

}
